package com.basketball.gym.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.basketball.gym.pojo.Feedback;
import com.baomidou.mybatisplus.extension.service.IService;
import com.basketball.gym.pojo.ResponseData;
import com.basketball.gym.pojo.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 赵肖云
 * @since 2021-04-10
 */
public interface FeedbackService extends IService<Feedback> {

    /**
     * 提交反馈
     */
    ResponseData<Feedback> postFeedback(Feedback feedback, User user);

    /**
     * 查询我的反馈
     */
    ResponseData<List<Feedback>> getMyFeedback(User user);

    /**
     * 查询所有反馈
     */
    ResponseData<IPage<Feedback>> adminGetFeedback(Feedback feedback);
}
